package com.ericsson.enap.modules.enm.service.impl;

import com.ericsson.enap.modules.enm.entity.EnipEnmAlarmLog;
import com.ericsson.enap.modules.enm.mapper.EnipEnmAlarmLogMapper;
import com.ericsson.enap.modules.enm.service.IEnipEnmAlarmLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 告警日志表Service业务层处理
 *
 * @author ruoyi
 * @date 2022-02-25
 */
@Service
public class EnipEnmAlarmLogServiceImpl implements IEnipEnmAlarmLogService {
    @Autowired
    private EnipEnmAlarmLogMapper enipEnmAlarmLogMapper;

    /**
     * 查询告警日志表
     *
     * @param id 告警日志表ID
     * @return 告警日志表
     */
    @Override
    public EnipEnmAlarmLog selectEnipEnmAlarmLogById(Long id) {
        return enipEnmAlarmLogMapper.selectEnipEnmAlarmLogById(id);
    }

    /**
     * 查询告警日志表列表
     *
     * @param enipEnmAlarmLog 告警日志表
     * @return 告警日志表
     */
    @Override
    public List<EnipEnmAlarmLog> selectEnipEnmAlarmLogList(EnipEnmAlarmLog enipEnmAlarmLog) {
        return enipEnmAlarmLogMapper.selectEnipEnmAlarmLogList(enipEnmAlarmLog);
    }

    /**
     * 新增告警日志表
     *
     * @param enipEnmAlarmLog 告警日志表
     * @return 结果
     */
    @Override
    public int insertEnipEnmAlarmLog(EnipEnmAlarmLog enipEnmAlarmLog) {
        return enipEnmAlarmLogMapper.insertEnipEnmAlarmLog(enipEnmAlarmLog);
    }

    /**
     * 修改告警日志表
     *
     * @param enipEnmAlarmLog 告警日志表
     * @return 结果
     */
    @Override
    public int updateEnipEnmAlarmLog(EnipEnmAlarmLog enipEnmAlarmLog) {
        return enipEnmAlarmLogMapper.updateEnipEnmAlarmLog(enipEnmAlarmLog);
    }

    /**
     * 批量删除告警日志表
     *
     * @param ids 需要删除的告警日志表ID
     * @return 结果
     */
    @Override
    public int deleteEnipEnmAlarmLogByIds(Long[] ids) {
        return enipEnmAlarmLogMapper.deleteEnipEnmAlarmLogByIds(ids);
    }

    /**
     * 删除告警日志表信息
     *
     * @param id 告警日志表ID
     * @return 结果
     */
    @Override
    public int deleteEnipEnmAlarmLogById(Long id) {
        return enipEnmAlarmLogMapper.deleteEnipEnmAlarmLogById(id);
    }
}
